<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/login.css">
</head>
<body>
<%@ include file="userNavbar.jsp" %>
<div class="login-container">
    <h2 class="text-2xl font-bold text-center text-gray-800 mb-6">用户登录</h2>
    <form action="LoginServlet" method="post">
        <div class="mb-4">
            <label for="username" class="block text-gray-700 font-semibold mb-2">用户名</label>
            <input type="text" id="username" name="username" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-400" placeholder="请输入用户名" required>
        </div>
        <div class="mb-6">
            <label for="password" class="block text-gray-700 font-semibold mb-2">密码</label>
            <input type="password" id="password" name="password" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-400" placeholder="请输入密码" required>
        </div>
        <button type="submit" class="w-full btn-primary text-white font-semibold py-2 rounded-lg">登录</button>
    </form>
    <p class="text-center mt-4 text-gray-600">还没有账号？<a href="userRegister.jsp" class="text-blue-500 hover:underline">立即注册</a></p>
</div>
</body>
</html>